package week_three_day03.jackson;

import com.fasterxml.jackson.annotation.JsonBackReference;

public class Address {
	private Integer id;
	private String city;
	@JsonBackReference
	private Customer c;
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getCity() {
		return city;
	}
	public void setCity(String city) {
		this.city = city;
	}
	public Address() {
		super();
	}
	public Address(Integer id, String city) {
		super();
		this.id = id;
		this.city = city;
	}
	
	
	public Customer getC() {
		return c;
	}
	public void setC(Customer c) {
		this.c = c;
	}
	@Override
	public String toString() {
		return "Address [id=" + id + ", city=" + city + "]";
	}
	
}
